<template>
  <div>
    <div class="btn">{{ msg }}</div>
    <p>pinia: current{{testStore.current}} --- {{testStore.name}}</p>
  </div>
</template>

<script setup lang="ts">
import { useTestStore } from '../../stores/counter'
const testStore = useTestStore()
  defineProps<{
    msg?: string
  }>()
</script>

<style lang="css" scoped>
  .btn {
    width: fit-content;
    margin: 8px;
    padding: 6px 10px;
    border: 1px solid #1677ff;
    border-radius: 4px;
    background-color: skyblue;
    cursor: pointer;
    color: #fff;
  }
</style>
